package com.github.common.extend.demo.config.desensitization.convert;

import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;

/**
 * @author wangjj7
 * @date 2022/8/2
 * @description
 */
@Component
public class LongKeyTypeConverter implements KeyTypeConverter<Long>{

    @Override
    public Long convert(String keyVal) {
        return StringUtils.isBlank(keyVal) ? null : Long.valueOf(keyVal);
    }

}
